
<?php	
	
	require_once('../../lib/'.'BaseDir.inc.htm');			
	require_once (EIU_CLASS.'BlockClass.htm');
	require_once (EIU_CLASS.'Category.htm');
	set_time_limit(30);
	
	$data["dataSearch"]["TimeStart"] = date("h:i:s:u");		
	$catObj = new category();
	
	//Lấy danh sách tên thiết bị theo CAT
	
	$CATCode=$_POST["CATCode"];
	
	
	$nameList = $catObj->getNameCATList($CATCode);
	$data["dataSearch"]["nameList"] = "";
	
	$data["dataSearch"]["nameList"] = $nameList;
	
	
	$data["dataSearch"]["TimeFinish"] = date("h:i:s:u");
	$json = json_encode($data["dataSearch"]);
	
	echo $json;	
	
?>